package com.diipo.weibo;


public class ConfigInfo {
	
	public static final String USER_PREFERENCES = "WEIBO_USER_PREFERENCES";
	public static final String PREF_USERNAME = "WEIBO_USERNAME";
	public static final String PREF_PASSWORD = "WEIBO_PASSWORD";
	public static final String PREF_SERVER_ADDRESS = "WEIBO_SERVER_ADDRESS";
	
	public static final class HTTPRETURN{
		/**网络访问数据返回出错的提示信息**/
		public static final String HTTPERROR="未获取 到数据！";
		public static final String HTTP_ERROR_401="用户名或密码错误！";
		public static final String COMMHTTPERRORS="网络异常！";
		public static final String HTTP_ERROR_400="暂时没有消息!";
		public static final String HTTP_ERROR_404="暂时没有新消息!";
		public static final String HTTP_ERROR_CODE_404="404";
		public static final String HTTP_ERROR_DOMAIN ="域名";
		
		public static final String HTTP_ERROR_MSG_DEL="消息已经被删除!";
	}
	public static final class COMM{
		public static final String APY_KEY="diipo_iphone_test";
		public static final String CONST_SERVER_ADDRESS="http://test1.diipo.cn";
//		public static final String CONST_SERVER_ADDRESS="http://t.diiposoft.com";
		
		public static String MSG_ID = "id";
		public static String NOTIFY_ID = "notifyid";
		public static String ROOT_ID = "rootid";
		public static String USER_ID = "id";
		public static String USER_NAME = "name";
		public static String THUMBNAIL = "thumbnail";
		public static String PIC_URL = "pic_url";
		 
		
		public static String ACTION_FLAG = "flag";
		
		public static String HTML = "html";
		/**1：消息，0：私信**/
		public static String LETTER_TYPE = "0";
		public static String MSG_TYPE = "1";
		
		public static String DIRECT_EMAIL = "send_email";
		public static String SEND_LETTER = "send_letter";
		public static String DIRECT_MENTION = "mention";
		
		public static String SEND_TYPE = "send_type";
		// 1，消息，2，消息回复，3，私信，4，私信回复
		public static String WEIBO_MSG = "1";
		public static String WEIBO_MSG_REPLY = "2";
		public static String WEIBO_LETTER = "3";
		public static String WEIBO_LETTER_REPLY = "4";
		
		public static String DETAIL_ID = "detail_id"; //指定要评论的的消息ID
		
		public static String PW_TYPE_REPLY = "1";
		public static String PW_TYPE_SHARE = "4";
		
		//content 结构中的type
		public static String CONTENT_TYPE_LINK = "0";
		public static String CONTENT_TYPE_PIC = "2";
		public static String CONTENT_TYPE_VEDIO = "3";
		public static String CONTENT_TYPE_PLAINTEXT = "8";
		public static String CONTENT_TYPE_RICH_HTML = "10";
		public static String CONTENT_TYPE_RICH_EMBEDDED = "11";
		public static String CONTENT_TYPE_RICH_FORM = "12";
		
		//app_type 
		public static String APP_TYPE = "app_type";  //
		public static String APP_TYPE_APPROVE = "12330";  //审批
		public static String APP_TYPE_MEETING = "12332";
		public static String APP_TYPE_EVENT = "12334";
		public static String APP_TYPE_TASK = "12335";
		
		public static String APP_TYPE_PARA_MEETING = "1";  //meeting
		public static String APP_TYPE_PARA_EVENT = "2";  //event
		public static String APP_TYPE_PARA_TASK = "3";     //task
		public static String APP_TYPE_PARA_APPROVE = "4";     //approve
		
		
		public static String APP_TASK_INIT = "0";//init
		public static String APP_TASK_DONE = "1";//done
		public static String APP_TASK_UNDONE = "2";//undone
		
		// meeting para
		public static String APP_MEETING_INIT = "0";//init
		public static String APP_MEETING_JOIN = "1";//join
		public static String APP_MEETING_UNJOIN = "2";//un join
		public static String APP_MEETING_UNKNOW = "3";//unknow
		
		
		// event para
		public static String APP_EVENT_INIT = "0";//init
		public static String APP_EVENT_JOIN = "1";//join
		public static String APP_EVENT_UNJOIN = "2";//un join
		public static String APP_EVENT_UNKNOW = "3";//unknow
		
		// approve para
		public static String APP_APPROVE_INIT = "0";//init
		public static String APP_APPROVE_PASS = "1";//pass
		public static String APP_APPROVE_UNPASS = "2";//unpass
		
		
		public static String ITEM_TYPE = "itemType";
		
		
		//when some reply happened in the WeiboDetailsActivity,the Home Activity should get data again from the server
		public static boolean UPDATE_DATA = false;
		
		
		public static String LOGOUT = "logout";
		
		
		
	}
	public static boolean IS_LOGOUT = false;
	
	//the unread msg was review,so the MsgActivity UI should update here
	public static boolean IS_UN_READ_VIEW = false;
	
	//call in the onActivityResult() function.
	public static int CALLBACK_CREATE_WEIBO = 1;
	public static int CALLBACK_REPLY_WEIBO = 2;
	public static int CALLBACK_CREATE_LETTER = 3;
	public static int CALLBACK_REPLY_LETTER = 4;
	
	private static MainTabs Instance = null;
	public static MainTabs getInstanceMainTabs() {
		return Instance;
	}
	public static void setInstanceContext(MainTabs instance) {
		Instance = instance;
	}
	
	private static Home HomeInstance = null;
	public static Home getInstanceHome() {
		return HomeInstance;
	}
	public static void setInstanceContext(Home instance) {
		HomeInstance = instance;
	}
	
	private static MsgActivity MsgInstance = null;
	public static MsgActivity getInstanceMsgActivity() {
		return MsgInstance;
	}
	public static void setInstanceContext(MsgActivity instance) {
		MsgInstance = instance;
	}
	
	private static PrivateLetterActivity PrivateLetterActivityInstance = null;
	public static PrivateLetterActivity getInstancePrivateLetterActivity() {
		return PrivateLetterActivityInstance;
	}
	public static void setInstanceContext(PrivateLetterActivity instance) {
		PrivateLetterActivityInstance = instance;
	}
	
	private static ContactsActivity ContactsActivityInstance = null;
	public static ContactsActivity getInstanceContactsActivity() {
		return ContactsActivityInstance;
	}
	public static void setInstanceContext(ContactsActivity instance) {
		ContactsActivityInstance = instance;
	}

}
